package com.ruoyi.carShop.service;


import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.system.api.domain.Merchant;
import com.ruoyi.system.api.domain.OrderDetails;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("ruoyi-carService")
public interface MerchantCarService {
    //新增
    @Log(title = "商户管理", businessType = BusinessType.INSERT)
    @PostMapping("/merchant")
    public AjaxResult add(@RequestBody Merchant merchant);

    //查询商户详细信息
    @GetMapping(value = "/merchant/{merchantId}")
    public AjaxResult getInfo(@PathVariable("merchantId") Long merchantId);

    //查询订单
    @GetMapping("/orderDetails/list")
    public TableDataInfo list(OrderDetails orderDetails);

}
